<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@ include file="taglibs-out.jsp"%>
<%@page import="com.cnhis.cloudhealth.commons.utils.PropDynamicCfg"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<%
    String vaa01 = (String)request.getParameter("vaa01");
    request.setAttribute("vaa01",vaa01);
    String vaa05 = (String)request.getParameter("vaa05");
    request.setAttribute("vaa05",vaa05);
    String vac01 = (String)request.getParameter("vac01");
    request.setAttribute("vac01",vac01);
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>云健康--电子病历</title>
<!-- 框架css js -->
<script src="${ctx}/js.base/jquery-1.11.3.js"></script>
<link href="${ctx}/lib/bootstrap-3.3.5-dist/css/bootstrap.css" rel="stylesheet">
<script src="${ctx}/lib/bootstrap-3.3.5-dist/js/bootstrap.min.js"></script>
<!-- 电子病历记录 -->
<link rel="stylesheet" type="text/css" href="${ctx}/emr/jquery.treetable.css">
<link rel="stylesheet" type="text/css" href="${ctx}/emr/jquery.treetable.theme.default.css">
<script src="${ctx}/emr/jquery.treetable.js"></script>

<link rel="stylesheet" type="text/css" href="${ctx}/lib/ztree/zTreeStyle/zTreeStyle.css" />
<script src="${ctx}/lib/ztree/jquery.ztree.core.js"></script>
<script src="${ctx}/lib/ztree/jquery.ztree.exedit.js"></script>
<script src="${ctx}/js.base/jquery.cookie.js"></script>
<link rel="stylesheet" type="text/css" href="${ctx}/one/css/outpatient.css" />
<script src="${ctx}/one/js/emr.js"></script>
<!--laytpl  -->
<script type="text/javascript" src="${ctx}/lib/laytpl/laytpl/laytpl.js"></script>
<script type="text/javascript" src="${ctx}/lib/laytpl/laytpl/template.js"></script>
<!-- 弹出层 -->
<script type="text/javascript" src="${ctx}/lib/layer/layer.js"></script>
<link rel="stylesheet" type="text/css" href="${ctx}/theme/theme_blue/main.css" />
</style>
</head>
<body>
<input type="hidden" id="vaa01" />
<input type="hidden" id="vaa05" />
<input type="hidden" id="vac01" />
	<div class="layer_container">
		<div class="body_container_table">
			<div class="main_content">
				<div class="main-header-search">
					<form class="form-inline">
						<button type="button" class="btn btn-main" onclick="addEmr();" name="xinzeng">
							<span class="glyphicon glyphicon-plus"></span>
							<span>新增</span>
						</button>
						<button type="button" class="btn btn-main" id="edit_emr_btn" onclick="editApplyFile();" name="xiugai">
							<span class="glyphicon glyphicon-pencil"></span>
							<span>修改</span>
						</button>
						<button type="button" class="btn btn-main" onclick="deleteApplyFile();" name="shanchu_emr">
							<span class="glyphicon glyphicon-trash"></span>
							<span>删除</span>
						</button>
						<!-- <button type="button" class="btn btn-main" onclick="completeApplyFile();" name="wancheng_emr">
							<span class="glyphicon glyphicon-off"></span>
							<span>完成病历</span>
						</button>
						<button type="button" class="btn btn-main" id="menu-btn-withdraw" name="chehui_emr">
							<span class="glyphicon glyphicon-import"></span>
							<span>撤回</span>
						</button> -->
					</form>
				</div>
				<div class="main-table-container" style="top: 0; bottom: 0">
					<table class="table table-bordered table-responsive" id="emr_app_file_list"></table>
				</div>
			</div>
		</div>
	</div>
</body>
<script type="text/javascript">

//电子病历用方法
function millisecondsStrToDate(str){
    var   startyear   =   1970;
    var   startmonth   =   1;
    var   startday   =   1;
    var   d,   s;
    var   sep   =   ":";
    d   =   new   Date();
    d.setFullYear(startyear,   startmonth,   startday);
    d.setTime(0);
    d.setMilliseconds(str);
    var hour = d.getHours() > 9 ? d.getHours() : "0" + d.getHours();
    var min = d.getMinutes() > 9 ? d.getMinutes() : "0" + d.getMinutes();
    var sec = d.getSeconds() > 9 ? d.getSeconds() : "0" + d.getSeconds();
    s   = d.getFullYear() + "-" + ((d.getMonth()+1) > 9 ? (d.getMonth()+1) : "0" + (d.getMonth()+1)) + "-" + (d.getDate() > 9 ? d.getDate() : "0" + d.getDate()) + " " + hour + ":" + min + ":" + sec + "";
    return s;
}

debugger;
var vaa01 = '${vaa01}';
var vaa05 = '${vaa05}';
var vac01 = '${vac01}';
$("#vaa01").val(vaa01);
$("#vaa05").val(vaa05);
$("#vac01").val(vac01);
queryApplyFileByPatientId(vaa01, vaa05, vac01);
</script>
</html>